﻿using CatUtils.Utils.SpecialUtils.Html;
using CatUtilsDll.Utils.Currency.WebUtils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static PicACGTool.UserUtils.UserUtils.EX.DicHelper;

namespace PicACGTool.UserUtils.UserUtils.EX
{
    internal class ExAnalysis
    {
        public static List<DicStruct> Analysis(string ExLink)
        {
            List<DicStruct> CnTagList = new List<DicStruct>();
            string Shtml = WebHelper.HttpPcGet(ExLink);
            foreach (var item in HtmlHelper.GetTextValueList(Shtml, "//div[@class='gt']"))
            {
                DicStruct DicInfo = DicHelper.SerchRomaTag(item);

                CnTagList.Add(DicInfo);
            }

            return CnTagList;
        }
    }
}